package com.ponhu.ea2.stockcenter.provider.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 仓库字典表
 *
 * @TableName ph_stock_warehouse
 */
@TableName(value = "ph_stock_warehouse")
@Data
@Accessors(chain = true)
public class StockWarehouse implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 仓库编码
     */
    private String warehouseCode;

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 是否可售仓
     */
    private Boolean saleStatus;

    /**
     * 业务类型(1-普通仓;2-业务部门仓;3-门店仓)
     */
    private Integer bizType;

    /**
     * 状态(1-有效 ;0-注销)
     */
    private Integer state;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE, update = "NOW()")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}